const landDom = document.querySelector(".land");
const landStyleData = getComputedStyle(landDom);
const landWidth = parseFloat(landStyleData.width);
const landHeight = parseFloat(landStyleData.height);

class Land extends Rectangle {
  constructor(speed) {
    // 调用父类
    super(landWidth, landHeight, 0, skyStyleData.height, speed, 0, landDom);
  }
  onMove() {
    // console.log("Land类的onMove事件");
    if (this.left <= -skyWidth / 2) {
      this.left = 0;
    }
  }
}